for x in range(1,10001):
    if x%7!=0:
        print(x)
